package com.yugao.fintech.draper.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yugao.fintech.draper.admin.param.DeptVO;
import com.yugao.fintech.draper.admin.entity.SysDept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface DeptMapper extends BaseMapper<SysDept> {

	/**
	 * 获取部门树
	 */
	DeptVO getDeptTree();

	DeptVO listDeptsByParentId(@Param("pId") Long pId);

	String getDeptNameByUserId(@Param("deptId") Long deptId);

}
